from django.db import models
import datetime


# Create your models here.

class Article(models.Model):
    question = models.TextField()
    answer = models.TextField()
    author = models.CharField(max_length=200)
    up = models.IntegerField(default=0)
    down = models.IntegerField(default=0)
    publish_time = models.DateTimeField(default=datetime.datetime.now)
